package store.lunangangster.bpmn.model;

/**
 * InclusiveGateway (非独占网关) 会有<b>多条</b>输出SequenceFlow被选择。被选择的SequenceFlow符合下列
 * 条件之一：
 * <ol>
 *   <li>该输出SequenceFlow的conditionExpress被计算为<b>true</b></li>
 *   <li>所有输出SequenceFlow的conditionExpress均为false，但{@link #defaultPath}指向当前SequenceFlow</li>
 * </ol>
 *
 * <p>不应该出现{@link #defaultPath}不存在并且所有SequenceFlow但conditionExpress均计算为false的情况
 * <p>所有的输出不保证同步
 *
 * @author cwk
 * @version 1.0
 */
public class InclusiveGateway extends Gateway {

  protected String defaultPath;

  public String getDefaultPath() {
    return defaultPath;
  }

  public void setDefaultPath(String defaultPath) {
    this.defaultPath = defaultPath;
  }

  @Override
  public String getModelType() {
    return "INCLUSIVE_GATEWAY";
  }
}
